const express =require('express')
const app=express()

//解析表单数据中间件，可以接收post传达的数据
app.use(express.urlencoded({extended:false}))

const router=require(__dirname+'/apiRouter')
app.use('/api',router)


app.listen(8000,()=>{
    console.log('localhost:8000')
})